{include file="public/header"}
<body>
<fieldset class="layui-elem-field">
    <legend>结算</legend>
    <div class="layui-field-box" id="content">
        <div class="layui-form">
            <div class="layui-inline">
                <label class="layui-form-label" style="width:100px;">代理商</label>
                <div class="layui-input-inline">
                    <input type="text" name="agent_name" value="{$data.agent}"  autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label" style="width:100px;">上级代理</label>
                <div class="layui-input-inline">
                    <input type="text" name="phone" value="{$data.parentagent}" autocomplete="off" class="layui-input">
                </div>
            </div>
             <div class="layui-inline">
                <label class="layui-form-label" style="width:100px;">日&nbsp;&nbsp;期</label>
                <div class="layui-input-inline">
                    <input type="text" name="agent_name" value="{$data.time}" placeholder="" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label" style="width:100px;">收款费率差</label>
                <div class="layui-input-inline">
                    <input type="text" name="agent_name" value="{$data.getfee_differ*100}%" placeholder="" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label" style="width:100px;">还款费率差</label>
                <div class="layui-input-inline">
                    <input type="text" name="agent_name" value="{$data.payfee_differ*100}%" placeholder="" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label" style="width:100px;">调账单号</label>
                <div class="layui-input-inline">
                   
                </div>
            </div>
        </div>
        

        <table class="layui-table" >
            <thead>
            <tr>
                <th>日期</th>
                <th>收款分润</th>
                <th>还款分润</th>
                <th>小计</th>
            </tr>
            </thead>
            <tbody  >
            {volist name="list" id="vo"}
            <tr>
                <td>{$vo.time}</td>
                <td>{$vo.get_sum}</td>
                <td>{$vo.pay_sum}</td>
                <td>{$vo.sum}</td>
            </tr>
            {/volist}
            <tr >
                <th>合计</th>
                <th>{$data.get_sum}</th>
                <th>{$data.pay_sum}</th>
                <th>{$data.sum}</th>
            </tr>
             <tr >
                <th>审核人</th>
                <th></th>
                <th>经办人</th>
                <th></th>
            </tr>
            </tbody>
        </table>
    </div>
    <div style="text-align: center;">
         <button class="layui-btn layui-btn-big  layui-btn-normal" type="button" onclick="print()">
        结算
    </button>
    </div>
   
</fieldset>


{include file="public/footer"}
<script src="/static/js/jquery.jqprint-0.3.js"></script>
<script>
    layui.use(['layer'], function() {});
    function print()
    {
         $("#content").jqprint();
       return false;
        //  var params  = {
        //         url : "{:url('settle')}",
        //         data: {"agent":"{$data.agentName}","id":{$data.trade_id}},
        //         type: 'post',
        //         sCallback:function(res){
        //            dialog.success(res.msg);
        //            $("#content").jqprint();
        //         }
        //     }
        //     common.request(params);
            
    }
</script>
</body>
</html>